import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '@/views/home/home'
import list from '@/views/list/list'
import shopcar from '@/views/shopcar/shopcar'
import user from '@/views/user/user'

Vue.use(VueRouter)

const routes = [
    {
        path:"/",
        name:"home",
        component:home
    },
    {
        path:"/list",
        name:"list",
        component:list
    },
    {
        path:"/shopcar",
        name:"shopcar",
        component:shopcar
    },
    {
        path:"/user",
        name:"user",
        component:user
    }
]

export default new VueRouter({
    routes
})